package cn.melonlib.cores.commons.model.entity;

import lombok.Data;

import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;
import java.io.Serializable;

@MappedSuperclass
@Data
public abstract class AbstractCustomIdEntity<ID extends Serializable> implements ICustomIdEntity<ID>,IEntity<ID>{



    @Transient
    private ID genID;

    public ID generatorId() {
        return this.genID;
    }

}
